import apiCreator from '../../utils/apiCreator';
import config from '../../utils/config';
const api = apiCreator();
export default {
  //查询情景下拉列表
  getScenes: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/getScenes`, query),
  //查询表格内容
  stressTestConfig: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/find-all`, query),
  //编辑情景设置表格内容
  stressTestConfigSave: (query) => api.post(`${config.interfaces.type5}maat-risk/stressSceneSettings/saveStressTestConfig`, query),
  // 情景名称保存
  sceneSettingsSave: (query) => api.post(`${config.interfaces.type5}maat-risk/stressSceneSettings/save`, query),
  // 情景名称校验
  checkSceneName: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/checkSceneName`, query),
  // 情景名称编辑
  sceneSettingsEditSceneName: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/editSceneName`, query),
  // 情景名称删除
  sceneSettingsDelete: (query) => api.get(`${config.interfaces.type5}maat-risk/stressSceneSettings/delete`, query),

  //查询模板下拉列表
  getModels: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/getCompleteTemplateInfo`, query),
  getModelInfo: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/getTemplateModule`, query),
  // 模板名称校验
  checkModelName: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/checkTemplateName`, query),
  // 模板名称保存
  modelSettingsSave: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/addNewTemplate`, query),
  // 模板名称编辑
  modelSettingsEditSceneName: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/modifyTemplateName`, query),
  // 模板名称删除
  modelSettingsDelete: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/delTemplateAndModule`, query),
  // 模板表格编辑
  modifyTemplateModule: (query) => api.post(`${config.interfaces.type5}maat-risk/stressTemplateSettings/modifyTemplateModule`, query),

  // 情景模板删除判断
  judgeUsageStatus: (query) => api.get(`${config.interfaces.type5}portfolio-server/tenant/judgeUsageStatus`, query),
};
